package com.qianfeng.biquge.service;

import com.github.pagehelper.PageInfo;
import com.qianfeng.biquge.pojo.Authors;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.UnsupportedEncodingException;
import java.util.List;

public interface IAuthorService {

    void addAuthor(Authors authors);

    PageInfo<Authors> getAllAuthor(int pageNum, int pageSize);

    Authors getAuthorByAuthorId(Long authorId);

    PageInfo<Authors> getAuthorByAuthorName( String authorName, int pageNum, int pageSize) throws UnsupportedEncodingException;

    int updateAuthor(Authors authors);

}
